<script setup>
import HelloWorld from '@/components/HelloWorld.vue'
import { Button as VBtn } from 'vant'
import { useUserInfoStore } from '@/store/user'
const userData = useUserInfoStore()
function testStore() {
    console.log(userData)
    userData.setUser()
}
</script>

<template>
  <div>
    <a href="https://vitejs.dev" target="_blank">
      <img src="/vite.svg" class="logo" alt="Vite logo" />
    </a>
    <a href="https://vuejs.org/" target="_blank">
      <img src="@/assets/vue.svg" class="logo vue" alt="Vue logo" />
    </a>
  </div>
  <div class="test">

  </div>
  <v-btn @click="testStore">看看</v-btn>
  <HelloWorld msg="Vite + Vue" />
</template>

<style scoped>
#app {
  padding: 0 !important;
}
body {
  padding: 0;
}
.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.test {
  width: 300rpx;
  background: #f40;
  height: 40rpx;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.vue:hover {
  filter: drop-shadow(0 0 2em #42b883aa);
}
</style>
